package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 购物车信息对象 tb_shopcart
 * 
 * @author ruoyi
 * @date 2022-06-16
 */
public class TbShopcart extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 购物车商品ID */
    private Long scId;

    /** 用户名 */
    @Excel(name = "用户名")
    private Long userId;

    /** 书籍ID */
    @Excel(name = "书籍ID")
    private Long bookId;

    /** 库存 */
    @Excel(name = "库存")
    private Long stock;

    public Long getStock() {
        return stock;
    }

    public void setStock(Long stock) {
        this.stock = stock;
    }

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 书籍ID */
    @Excel(name = "书籍名称")
    private String  bookName;

    /** 现价 */
    @Excel(name = "现价")
    private BigDecimal rePrice;

    public BigDecimal getRePrice() {
        return rePrice;
    }

    public void setRePrice(BigDecimal rePrice) {
        this.rePrice = rePrice;
    }

    /** 数量 */
    @Excel(name = "数量")
    private Long num;

    /** 删除字段 */
    @Excel(name = "删除字段")
    private String isDel;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }


    public void setScId(Long scId) 
    {
        this.scId = scId;
    }

    public Long getScId() 
    {
        return scId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setBookId(Long bookId) 
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }
    public void setNum(Long num) 
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }
    public void setIsDel(String isDel) 
    {
        this.isDel = isDel;
    }

    public String getIsDel() 
    {
        return isDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("scId", getScId())
            .append("userId", getUserId())
            .append("bookId", getBookId())
                .append("username", getUsername())
                .append("bookName", getBookName())
                .append("rePrice", getRePrice())
                .append("stock", getStock())
            .append("num", getNum())
            .append("isDel", getIsDel())
            .append("createTime", getCreateTime())
            .toString();
    }
}
